package com.luyuan.crm.user;

import com.ruijie.foundation.bo.EntityObject;

public class PartyGroup extends EntityObject<String> {

    private static final long serialVersionUID = 5062971352868112408L;

    private String partyGroupName;

    private PartyGroup parentGroup;

    private String desc;

    public String getPartyGroupName() {
        return partyGroupName;
    }

    public void setPartyGroupName(String partyGroupName) {
        this.partyGroupName = partyGroupName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public PartyGroup getParentGroup() {
        return parentGroup;
    }

    public void setParentGroup(PartyGroup parentGroup) {
        this.parentGroup = parentGroup;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if (other == null) {
            return false;
        }
        if (!(other instanceof PartyGroup)) {
            return false;
        }
        PartyGroup entity = (PartyGroup) other;
        if (getId() == null || entity.getId() == null) {
            return false;
        }
        return getId().equals(entity.getId());
    }
}
